package com.mt.baseinfo.controller;

import com.mt.baseinfo.enums.DataSourceType;
import com.mt.baseinfo.mult.DataSource;
import com.mt.baseinfo.service.BaseDataDictService;
import com.mt.common.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/baseData")
public class BaseDataDictController {
    @Autowired
    BaseDataDictService service;

    @GetMapping(value = "/infos")

    public Result baseDataInfos(){
        return Result.ok(service.baseDataDicts().toString());
    }

    @GetMapping(value = "/insert")
    public int insertBaseDataDicts(){
        return service.insertBaseDataDicts();
    }
}
